package com.hyk.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hyk.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hyk.entity.request.UserRequest;
import com.hyk.entity.response.ProductResponse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hyk
 * @since 2021-03-19
 */
public interface UserMapper extends BaseMapper<User> {

    List<User> selectByUserName(@Param("username") String username);

    IPage<User> listPage(IPage<User> productResponseIPage, @Param("request") UserRequest request);
}
